Skip to content

Ignore 'property' decorator when transpiling function decorators#729

Open
AlexECX wants to merge 1 commit intoTranscryptOrg:dev_fall_2019from
AlexECX:Ignore-'property'-decorator-when-transpiling-function-decorators
Open

Ignore 'property' decorator when transpiling function decorators#729
AlexECX wants to merge 1 commit intoTranscryptOrg:dev_fall_2019from
AlexECX:Ignore-'property'-decorator-when-transpiling-function-decorators

Conversation

@AlexECX
Copy link

@AlexECX AlexECX commented May 14, 2020

Change Summary

Like the classmethod and staticmethod decorators, the property decorator is handled differently from other decorators and is not 'stacked' in front of the function it decorates. That is unless you combine it with other decorators, in which case it is added to the stack and will cause errors at JS runtime.

This PR aims to exclude the property decorator from the decorator stack, just like classmethod and staticmethod already are.

Related issue number

Related to #658.

PR Checklist

  • Adapted tests
  • Passes tests
  • Documented changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant